html {
    font-family: overpass-mono;
    font-weight: bold;
}

body {
    margin: 0;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    height: 100%;
}

*:focus {
    outline: none;
}

#title {
    height: 3rem;
    width: 100%;
    font-size: 2.5rem;
    align-content: center;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#main {
    flex: auto;
    display: flex;
    flex-direction: column;
    width: 1; /*hacky - but makes work on some phones*/
}

#brightness {
    height: auto;
    background: black;
    width: 3rem;
}

.noUi-vertical .noUi-handle {
    width: 3rem;
    left: 0px;
    height: 2.5rem;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
}

.noUi-vertical:focus .noUi-handle:focus {
    outline: none;
}

.noUi-target {
    border-radius: 0px;
    border: 0;
    background-color: transparent;
    background: transparent;
    box-shadow: none;
}

.noUi-base {
    height: 100%;
    border-radius: 0px;
}

.noUi-connect {
    background: #f36926;
    border-radius: 0px;
}

.noUi-handle:after, .noUi-handle:before {
    display: none;
}

#button_list {
    flex: auto;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.btn {
    font-size: 2rem;
    width: 100%;
    margin-top: 0.5rem;
    height: 3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    resize: vertical;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.btn:hover {
    opacity: 0.75;
}

.btn:active {
    opacity: 1.0;
    background-color: green;
}

/* Loading Animation */

body.loading:after {
	/* with no content, nothing is rendered */
	content: "";
	position: fixed;
	/* element stretched to cover during rotation an aspect ratio up to 1/10 */
	top: -500%;
	left: -500%;
	right: -500%;
	bottom: -500%;
	z-index: 9999;
	pointer-events: none; /* to block content use: all */
	/* background */
	background-color: rgba(0,0,0,1);
    background-image: url();

	background-repeat: no-repeat;
	background-position: center center;
	background-size: 256px 256px;

	/* animation */
	-webkit-animation-name: linearRotate;
	-webkit-animation-duration: 2s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: linear;

	-moz-animation-name: linearRotate;
	-moz-animation-duration: 2s;
	-moz-animation-iteration-count: infinite;
	-moz-animation-timing-function: linear;

	-o-animation-name: linearRotate;
	-o-animation-duration: 2s;
	-o-animation-iteration-count: infinite;
	-o-animation-timing-function: linear;

	animation-name: linearRotate;
	animation-duration: 2s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;

}

@-webkit-keyframes linearRotate {
	from {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-o-transform:rotate(0deg);
		transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

#overlay_text {
    font-color: white;
    font-size: 2rem;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin-top: -9px;
}
